package com.go.where.family.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.go.where.family.dao.CustomerAttentionDao;
import com.go.where.family.pojo.CustomerAttentionInfo;

@Repository("customerAttentionDao")
public class CustomerAttentionDaoImpl extends BaseDaoImpl<CustomerAttentionInfo, String>
		implements CustomerAttentionDao {

	@Override
	public String getNameSpace() {
		return "mybatis.xml.CustomerAttentionMapper";
	}

	@Override
	public CustomerAttentionInfo queryParameter(CustomerAttentionInfo customerAttentionInfo) {
		return getSqlSession().selectOne(getNameSpace() + ".queryParameter", customerAttentionInfo);
	}

	@Override
	public List<String> queryByFollowed(CustomerAttentionInfo customerAttentionInfo) {
		return getSqlSession().selectList(getNameSpace() + ".queryByFollowed", customerAttentionInfo);
	}

}
